package de.gameduell.net.src.communication {
	import flash.events.DataEvent;	

	public class CommunicationEvent extends DataEvent {

		public static const CONNECTED:String    = "gd_connected";
		public static const RECEIVE:String      = "gd_receive";
		public static const RECONNECT:String    = "gd_reconnect";
		public static const RECONNECTED:String  = "gd_reconnected";
		public static const DISCONNECT:String   = "gd_disconnect";
		public static const SOCKET:String 	    = "gd_socket";
		public static const TIMEOUT:String 	    = "gd_timeout";
		
		private var _requestType:String;
		private var _content:String;
		
		public function CommunicationEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false,aRequestType:String = "", aContent:String = "" ) {
			super(type, bubbles, cancelable,data);
			_requestType = aRequestType;
			_content	 = aContent;
		}
		
		public function get requestType():String{
			return _requestType;
		}
		
		public function get content():String{
			return _content;
		}

	}
}
